// This file is part of MinIO Design System
// Copyright (c) 2022 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

import React, { FC, SVGProps } from "react";
import LogoBase from "../LogoBase/LogoBase";
import { LogoBaseProps } from "../LogoBase/LogoBase.types";

const ConsoleAGPL: FC<SVGProps<any> & LogoBaseProps> = ({
  inverse,
  onClick,
}) => {
  return (
    <LogoBase viewBox="0 0 181.71 51.56" inverse={inverse} onClick={onClick}>
      <path
        className="minioApplicationName"
        d="M9.06,14.57c-1.19-.05-2.38.14-3.5.57-1.11.43-2.13,1.08-2.98,1.92-.85.84-1.52,1.84-1.96,2.95C.18,21.13-.03,22.31,0,23.51c-.04,1.19.17,2.38.62,3.49.44,1.11,1.11,2.11,1.96,2.95.85.84,1.86,1.49,2.98,1.92,1.11.43,2.3.63,3.5.57,1.19.05,2.38-.14,3.5-.57,1.11-.43,2.13-1.08,2.98-1.92.85-.84,1.52-1.84,1.96-2.95.44-1.11.66-2.3.62-3.49.03-1.19-.18-2.38-.62-3.49-.44-1.11-1.11-2.11-1.96-2.95-.85-.84-1.86-1.49-2.98-1.92s-2.31-.62-3.5-.57ZM9.06,17.87c.74-.02,1.47.11,2.16.39s1.3.7,1.82,1.23c.51.53.91,1.16,1.17,1.86.26.69.37,1.43.32,2.17.04.74-.06,1.48-.32,2.17-.26.69-.65,1.32-1.17,1.86-.51.53-1.13.95-1.82,1.23-.68.28-1.42.41-2.16.39-.74.02-1.47-.11-2.16-.39-.68-.28-1.3-.7-1.82-1.23-.51-.53-.91-1.16-1.17-1.85-.26-.69-.37-1.43-.32-2.17-.04-.74.07-1.48.32-2.17.26-.69.66-1.32,1.17-1.85.51-.53,1.13-.95,1.82-1.23.68-.28,1.42-.41,2.16-.39ZM20.59,14.89v17.24h7.46c4.14,0,6.49-1.63,6.49-4.94-.02-.86-.3-1.7-.81-2.39-.51-.69-1.23-1.21-2.06-1.47.74-.28,1.38-.78,1.83-1.43.45-.65.68-1.43.67-2.23,0-3.29-2.52-4.78-6.54-4.78h-7.04ZM27.88,24.96c1.9,0,3.09.44,3.09,2.06s-1.19,2.09-3.09,2.09h-3.85v-4.15h3.85ZM27.54,17.92c1.7,0,3.05.37,3.05,1.99s-1.33,2.03-3.04,2.03h-3.52v-4.03h3.51ZM46.93,14.89h-3.44v10.64c0,2.49-1.08,3.62-2.91,3.62-.64.01-1.28-.13-1.86-.41-.58-.28-1.09-.69-1.49-1.2l-1.99,2.5c.67.79,1.52,1.42,2.47,1.84.95.41,1.99.6,3.03.55,3.6,0,6.18-2.27,6.18-6.59v-10.96ZM63.01,28.97h-9.45v-3.97h8.92v-3.15h-8.92v-3.82h9.35v-3.15h-12.78v17.24h12.88v-3.15ZM74.04,14.57c-1.19-.05-2.39.14-3.5.57-1.12.43-2.13,1.08-2.98,1.92-.85.84-1.52,1.85-1.96,2.96-.44,1.11-.65,2.3-.61,3.49-.04,1.19.17,2.38.61,3.49.44,1.11,1.11,2.12,1.96,2.96.85.84,1.86,1.49,2.98,1.92,1.12.43,2.31.62,3.5.57,1.42.04,2.83-.27,4.1-.91,1.27-.64,2.36-1.58,3.18-2.74l-2.81-2.02c-.49.74-1.16,1.35-1.94,1.76-.79.41-1.66.62-2.55.61-.74.02-1.47-.12-2.15-.4-.68-.28-1.3-.7-1.81-1.23-.51-.53-.91-1.16-1.16-1.85-.26-.69-.36-1.43-.32-2.16-.04-.74.07-1.47.32-2.16.26-.69.65-1.32,1.16-1.85.51-.53,1.13-.95,1.81-1.23.68-.28,1.41-.42,2.15-.4.88-.02,1.76.19,2.54.61.78.42,1.44,1.03,1.92,1.77l2.96-1.81c-.79-1.23-1.88-2.24-3.18-2.92-1.3-.68-2.75-1.01-4.21-.95ZM96.59,14.89h-14.12v3.21h5.34v14.03h3.44v-14.03h5.34v-3.21ZM116.09,16.6c-1.8-1.27-3.96-1.94-6.16-1.9-3.55,0-6.38,1.79-6.38,4.96,0,2.65,1.91,4.06,5.06,4.42l1.96.22c2.87.32,4.37,1.23,4.37,3.1,0,2.33-2.3,3.47-5.22,3.47-2.1,0-4.14-.68-5.84-1.92l-.83,1.19c1.94,1.4,4.28,2.16,6.67,2.16,3.72,0,6.77-1.67,6.77-5.02,0-2.87-2.23-4.08-5.29-4.42l-1.88-.21c-2.94-.33-4.21-1.38-4.21-3.09,0-2.15,2.03-3.44,4.8-3.44,1.93-.02,3.82.57,5.39,1.69l.78-1.22ZM131.89,14.89h-13.93v1.43h6.21v15.81h1.5v-15.81h6.22v-1.43ZM141.61,14.69c-1.17-.04-2.33.16-3.42.59s-2.08,1.08-2.91,1.9c-.83.83-1.48,1.81-1.91,2.9-.43,1.09-.63,2.25-.6,3.42-.04,1.17.16,2.33.6,3.42.43,1.09,1.08,2.08,1.91,2.9.83.83,1.82,1.47,2.91,1.9,1.09.43,2.25.63,3.42.59,1.17.04,2.33-.16,3.42-.59,1.09-.43,2.08-1.08,2.91-1.9.83-.83,1.48-1.81,1.91-2.9.43-1.09.63-2.25.59-3.42.04-1.17-.16-2.33-.59-3.42-.43-1.09-1.08-2.08-1.91-2.9-.83-.83-1.82-1.47-2.91-1.9-1.09-.43-2.25-.63-3.42-.59ZM141.61,16.14c.97-.03,1.93.15,2.83.51.9.36,1.71.91,2.39,1.6.68.69,1.21,1.51,1.56,2.42.35.9.51,1.87.47,2.84.04.97-.12,1.94-.47,2.84-.35.9-.88,1.73-1.56,2.42-.68.69-1.5,1.23-2.39,1.6-.9.36-1.86.54-2.83.51-.97.03-1.93-.14-2.84-.51-.9-.36-1.72-.9-2.4-1.6s-1.21-1.51-1.56-2.42c-.35-.91-.51-1.87-.47-2.84-.04-.97.12-1.94.47-2.84.35-.91.88-1.73,1.56-2.42.68-.69,1.5-1.23,2.4-1.6.9-.36,1.87-.53,2.84-.51ZM153.94,14.89v17.24h1.5v-7.65h2.64l6.43,7.65h1.87l-6.53-7.65h.68c3.67,0,5.94-1.83,5.94-4.8s-2.14-4.79-5.95-4.79h-6.58ZM160.5,16.3c2.83,0,4.41,1.17,4.41,3.37s-1.55,3.44-4.41,3.44h-5.06v-6.81h5.06ZM181.71,30.71h-10.37v-6.56h9.99v-1.4h-9.99v-6.44h10.28v-1.42h-11.78v17.24h11.87v-1.42Z"
      />
      <path className="minioSection" d="M17.51.12h-2.43v7.14h2.43V.12Z" />
      <path
        className="minioSection"
        d="M12.09.1l-4.92,3c-.07.04-.16.04-.23,0L2.02.1c-.1-.06-.23-.1-.35-.1h0c-.37,0-.67.3-.67.67v6.46h2.42v-3.07c0-.19.21-.31.37-.21l2.76,1.68c.27.17.61.17.89,0l2.91-1.7c.16-.09.37.02.37.21v3.08h2.42V.67c0-.37-.3-.67-.67-.67h0c-.13,0-.25.03-.35.1"
      />
      <path
        className="minioSection"
        d="M29.6.12h-2.46v3.25c0,.18-.19.3-.36.21L20.41.2c-.1-.05-.21-.08-.32-.08h0c-.37,0-.67.3-.67.67v6.46h2.44v-3.25c0-.18.19-.3.36-.21l6.4,3.38c.1.05.21.08.32.08.37,0,.67-.3.67-.67V.12h0Z"
      />
      <path className="minioSection" d="M32.63.12h-1.12v7.14h1.12V.12Z" />
      <path
        className="minioSection"
        d="M39.19,7.39c-3,0-5.13-1.42-5.13-3.7s2.14-3.7,5.13-3.7,5.14,1.42,5.14,3.7-2.1,3.7-5.14,3.7M39.19.95c-2.23,0-3.95.97-3.95,2.75s1.72,2.75,3.95,2.75,3.96-.96,3.96-2.75-1.73-2.75-3.96-2.75Z"
      />
      <rect
        className="minioApplicationName"
        x="82.38"
        y="39.94"
        width="99.12"
        height="11.62"
        rx="2.4"
        ry="2.4"
      />
      <path
        className="contrast"
        d="M91.08,44.02h-1.07c-.04-.23-.12-.43-.23-.6-.11-.17-.25-.32-.41-.44-.16-.12-.34-.21-.54-.27s-.41-.09-.64-.09c-.4,0-.77.1-1.08.31s-.57.5-.75.89c-.18.39-.28.87-.28,1.44s.09,1.05.28,1.45c.18.39.44.69.76.89.32.2.68.3,1.08.3.22,0,.43-.03.63-.09s.38-.15.54-.27c.16-.12.3-.26.41-.44.11-.17.19-.37.24-.6h1.07c-.06.35-.17.67-.33.95-.16.29-.37.54-.63.75-.25.21-.55.37-.87.48s-.68.17-1.07.17c-.61,0-1.15-.14-1.62-.43-.48-.29-.85-.7-1.12-1.24-.27-.54-.41-1.18-.41-1.93s.14-1.39.41-1.93c.27-.54.65-.95,1.12-1.24.48-.29,1.02-.43,1.62-.43.37,0,.72.05,1.04.16.32.11.61.26.87.47.26.2.47.45.64.75s.28.63.34,1.01Z"
      />
      <path
        className="contrast"
        d="M94.97,48.86c-.49,0-.92-.11-1.29-.34s-.65-.54-.86-.95c-.2-.41-.3-.88-.3-1.43s.1-1.02.3-1.43c.2-.41.49-.73.86-.95s.8-.34,1.29-.34.92.11,1.29.34c.37.23.65.54.86.95.2.41.31.89.31,1.43s-.1,1.02-.31,1.43c-.2.41-.49.72-.86.95-.37.23-.8.34-1.29.34ZM94.97,48c.32,0,.59-.08.8-.25s.37-.39.47-.67c.1-.28.15-.59.15-.93s-.05-.64-.15-.93c-.1-.28-.26-.51-.47-.68s-.48-.26-.8-.26-.59.09-.8.26-.37.4-.47.68c-.1.28-.15.59-.15.93s.05.65.15.93c.1.28.26.51.47.67s.48.25.8.25Z"
      />
      <path
        className="contrast"
        d="M99.05,48.75v-5.27h.98v.86h.07c.11-.29.29-.52.54-.68.25-.16.55-.25.89-.25s.65.08.89.25c.24.17.42.39.53.68h.05c.13-.28.33-.51.6-.67.27-.17.6-.25.98-.25.48,0,.87.15,1.17.45.3.3.46.75.46,1.35v3.53h-1.03v-3.43c0-.36-.1-.61-.29-.77-.2-.16-.43-.24-.7-.24-.33,0-.59.1-.78.31-.19.2-.28.47-.28.79v3.36h-1.02v-3.5c0-.29-.09-.52-.27-.69-.18-.17-.41-.26-.7-.26-.19,0-.37.05-.54.15-.16.1-.3.24-.39.42s-.15.39-.15.63v3.25h-1.02Z"
      />
      <path
        className="contrast"
        d="M108.06,48.75v-5.27h.98v.86h.07c.11-.29.29-.52.54-.68.25-.16.55-.25.89-.25s.65.08.89.25c.24.17.42.39.53.68h.05c.13-.28.33-.51.6-.67.27-.17.6-.25.98-.25.48,0,.87.15,1.17.45.3.3.46.75.46,1.35v3.53h-1.03v-3.43c0-.36-.1-.61-.29-.77-.2-.16-.43-.24-.7-.24-.33,0-.59.1-.78.31-.19.2-.28.47-.28.79v3.36h-1.02v-3.5c0-.29-.09-.52-.27-.69-.18-.17-.41-.26-.7-.26-.19,0-.37.05-.54.15-.16.1-.3.24-.39.42s-.15.39-.15.63v3.25h-1.02Z"
      />
      <path
        className="contrast"
        d="M120.41,46.57v-3.08h1.03v5.27h-1.01v-.91h-.05c-.12.28-.32.51-.58.7-.27.19-.6.28-.99.28-.34,0-.64-.07-.9-.22-.26-.15-.46-.37-.61-.67-.15-.3-.22-.66-.22-1.09v-3.35h1.02v3.23c0,.36.1.64.3.86.2.21.46.32.77.32.19,0,.38-.05.57-.14s.35-.24.48-.44.19-.44.19-.74Z"
      />
      <path
        className="contrast"
        d="M124.32,45.63v3.13h-1.02v-5.27h.98v.86h.07c.12-.28.31-.5.57-.67.26-.17.59-.25.98-.25.36,0,.67.08.94.22.27.15.48.37.63.67.15.3.22.66.22,1.09v3.35h-1.02v-3.23c0-.38-.1-.68-.3-.9-.2-.22-.47-.32-.82-.32-.24,0-.45.05-.63.15-.18.1-.33.25-.44.45s-.16.44-.16.72Z"
      />
      <path
        className="contrast"
        d="M130.06,42.68c-.18,0-.33-.06-.46-.18-.13-.12-.19-.26-.19-.43s.06-.31.19-.43c.13-.12.28-.18.46-.18s.33.06.46.18c.13.12.19.26.19.43s-.06.31-.19.43c-.13.12-.28.18-.46.18ZM129.54,48.75v-5.27h1.02v5.27h-1.02Z"
      />
      <path
        className="contrast"
        d="M134.88,43.49v.82h-2.88v-.82h2.88ZM132.78,42.23h1.03v4.98c0,.2.03.35.09.45s.14.17.23.2.2.05.31.05c.08,0,.15,0,.22-.02s.11-.02.14-.03l.18.85c-.06.02-.14.05-.25.07-.11.02-.25.04-.41.04-.27,0-.52-.04-.75-.14-.23-.1-.42-.26-.57-.47-.14-.21-.22-.47-.22-.79v-5.19Z"
      />
      <path
        className="contrast"
        d="M137.15,50.73c-.15,0-.29-.01-.42-.04-.12-.02-.22-.05-.28-.08l.25-.84c.19.05.35.07.5.07.15,0,.28-.06.39-.16.11-.1.21-.27.3-.5l.13-.35-1.93-5.33h1.1l1.33,4.09h.05l1.33-4.09h1.1l-2.17,5.97c-.1.27-.23.51-.38.7-.15.19-.34.33-.56.43s-.46.14-.75.14Z"
      />
      <path
        className="contrast"
        d="M145.57,48.75v-7.02h4.4v.91h-3.34v2.14h3.11v.91h-3.11v2.15h3.38v.91h-4.44Z"
      />
      <path
        className="contrast"
        d="M153.76,48.86c-.43,0-.8-.11-1.14-.33-.33-.22-.59-.53-.78-.94-.19-.41-.28-.89-.28-1.46s.1-1.06.29-1.46.45-.71.79-.93c.33-.21.71-.32,1.13-.32.33,0,.59.05.79.16s.35.23.47.38c.11.14.2.27.26.38h.06v-2.61h1.03v7.02h-1v-.82h-.09c-.06.11-.15.24-.27.38s-.27.27-.47.38c-.2.11-.46.16-.78.16ZM153.99,47.98c.29,0,.54-.08.75-.23.2-.16.36-.37.47-.65s.16-.6.16-.97-.05-.69-.16-.96-.26-.49-.46-.64c-.2-.15-.46-.23-.75-.23s-.57.08-.77.24c-.21.16-.36.38-.46.65s-.16.59-.16.94.05.67.16.95c.1.28.26.5.47.67.21.16.46.24.77.24Z"
      />
      <path
        className="contrast"
        d="M158.83,42.68c-.18,0-.33-.06-.46-.18-.13-.12-.19-.26-.19-.43s.06-.31.19-.43c.13-.12.28-.18.46-.18s.33.06.46.18c.13.12.19.26.19.43s-.06.31-.19.43c-.13.12-.28.18-.46.18ZM158.31,48.75v-5.27h1.02v5.27h-1.02Z"
      />
      <path
        className="contrast"
        d="M163.66,43.49v.82h-2.88v-.82h2.88ZM161.55,42.23h1.03v4.98c0,.2.03.35.09.45s.14.17.23.2.2.05.31.05c.08,0,.15,0,.22-.02s.11-.02.14-.03l.18.85c-.06.02-.14.05-.25.07-.11.02-.25.04-.41.04-.27,0-.52-.04-.75-.14-.23-.1-.42-.26-.57-.47-.14-.21-.22-.47-.22-.79v-5.19Z"
      />
      <path
        className="contrast"
        d="M165.79,42.68c-.18,0-.33-.06-.46-.18-.13-.12-.19-.26-.19-.43s.06-.31.19-.43c.13-.12.28-.18.46-.18s.33.06.46.18c.13.12.19.26.19.43s-.06.31-.19.43c-.13.12-.28.18-.46.18ZM165.27,48.75v-5.27h1.02v5.27h-1.02Z"
      />
      <path
        className="contrast"
        d="M170.38,48.86c-.49,0-.92-.11-1.29-.34s-.65-.54-.86-.95c-.2-.41-.3-.88-.3-1.43s.1-1.02.3-1.43c.2-.41.49-.73.86-.95s.8-.34,1.29-.34.92.11,1.29.34c.37.23.65.54.86.95.2.41.31.89.31,1.43s-.1,1.02-.31,1.43c-.2.41-.49.72-.86.95-.37.23-.8.34-1.29.34ZM170.38,48c.32,0,.59-.08.8-.25s.37-.39.47-.67c.1-.28.15-.59.15-.93s-.05-.64-.15-.93c-.1-.28-.26-.51-.47-.68s-.48-.26-.8-.26-.59.09-.8.26-.37.4-.47.68c-.1.28-.15.59-.15.93s.05.65.15.93c.1.28.26.51.47.67s.48.25.8.25Z"
      />
      <path
        className="contrast"
        d="M175.48,45.63v3.13h-1.02v-5.27h.98v.86h.07c.12-.28.31-.5.57-.67.26-.17.59-.25.98-.25.36,0,.67.08.94.22.27.15.48.37.63.67.15.3.22.66.22,1.09v3.35h-1.02v-3.23c0-.38-.1-.68-.3-.9-.2-.22-.47-.32-.82-.32-.24,0-.45.05-.63.15-.18.1-.33.25-.44.45s-.16.44-.16.72Z"
      />
    </LogoBase>
  );
};

export default ConsoleAGPL;
